package cn.bfay.lion.util;

/**
 * FormatUtils.
 *
 * @author wangjiannan
 */
public class FormatUtils {

    /**
     * double格式化两位有效数字四色五入.
     *
     * @param value value
     * @return double
     */
    public static double formatDouble(double value) {
        return Double.parseDouble(String.format("%.2f", value));
    }
}
